//
//  HHYUtils.h
//  Shop
//
//  Created by apple on 2019/3/7.
//  Copyright © 2019 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void(^handler)(void);
typedef void(^myCallback)(NSString *action);


//NS_ASSUME_NONNULL_BEGIN

@interface HHYUtils : NSObject
+ (void)setupCornerToView:(UIView *)view rectCenter:(UIRectCorner)rectCenter radius:(CGFloat)radius backgroundColor:(UIColor *)bgColor;
+ (UIWindow *)mainWindow;
+ (CGSize)calculateStr:(NSString *)string font:(UIFont *)font viewSize:(CGSize)viewSize;
+ (NSString *)convertToJsonData:(NSDictionary *)dict;
+ (void)isConnectionAvailableWithAvaliable:(handler)avaliable unAvaliable:(handler)unAvaliable;
+ (void)textExampleLong:(NSString *)text;
+ (BOOL) isEmpty:(NSString *) str;

+(BOOL)isChina;
+ (NSString *)getCurrentTimeWithNum:(float)num;

+ (void)showAlertWithTitle:(NSString *)title message:(NSString *)message cancleTitle:(NSString *)cancleTitle cancleBlock:(myCallback)cancleCllback doneTitle:(NSString *)doneTitle doneBlock:(myCallback)doneCallback controller:(UIViewController *)vc;
@end

//NS_ASSUME_NONNULL_END
